package com.lvmama.pet.sync.dao;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.lvmama.comm.sync.po.SyncTrigger;

public interface SyncTriggerMapper  {

	
	public List<SyncTrigger> findPageList(Map<String, Object> params);
	
	public int updateStatus(Map<String, Object> params);

	public void save(SyncTrigger trigger);

	public Integer findOldTriggerCountByTrigger(SyncTrigger trigger);

	public List<Long> findSyncedTriggerIdList();

	public void moveListToHistory(Map<String, Object> map);

	public void deleteList(Map<String, Object> map);

	public Integer getInitStatusCount(Map<String, Object> params);

	public Long findMaxNotInitTriggerId(Date date);

	public Integer moveListToHistoryByMaxTriggerId(Map paramMap);

	public void deleteByMaxTriggerId(Map paramMap);

	public int updatePLevelByParams(Map<String, Object> params);
	public Integer findTotalCountByMaxTriggerId(Integer triId);
	
	
}
